package com.cchc.k8s.request;

import lombok.Data;

import java.util.List;

/**
 * file：CreateIngressRequest.java
 * description:
 * date: 2021-10-12 16:56
 * author: wenrui
 * version: 1.0
 */
@Data
public class CreateIngressRequest {

    private Boolean https;

    private String ingressName;

    private List<IngressRule> ruleList;

    @Data
    public static class IngressRule {
        private String host;

        private List<RulePath> pathList;

        @Data
        public static class RulePath {

            private String path;

            private String serviceName;

            private Integer servicePort;
        }
    }

}
